package com.czy;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;

public class 拼接逗号 {
    public static void main(String[] args) throws IOException {
        File file = new File("d:/1.txt");
        BufferedReader br = new BufferedReader(new FileReader(file));
        String s;
        StringBuilder sb = new StringBuilder();
        sb.append("in (");
        while ((s = br.readLine()) != null) {
            sb.append("'").append(s).append("'").append(",");
        }
        sb.deleteCharAt(sb.length() - 1);
        sb.append(")");
        System.out.println(sb);
    }
}
